package cz.kfad.ofrss.model;

import java.util.Date;

public class Channel {

    private int id;

    private String name;

    private int totalFeeds;

    private int unreadFeeds;

    private String url;

    private Date newestFetched;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTotalFeeds() {
        return totalFeeds;
    }

    public void setTotalFeeds(int totalFeeds) {
        this.totalFeeds = totalFeeds;
    }

    public int getUnreadFeeds() {
        return unreadFeeds;
    }

    public void setUnreadFeeds(int unreadFeeds) {
        this.unreadFeeds = unreadFeeds;
    }

    public Channel() {
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getNewestFetched() {
        return newestFetched;
    }

    public void setNewestFetched(Date newestFetched) {
        this.newestFetched = newestFetched;
    }

    public Channel(int id, String name, int totalFeeds, int unreadFeeds, String url) {
        this.id = id;
        this.name = name;
        this.totalFeeds = totalFeeds;
        this.unreadFeeds = unreadFeeds;
        this.url = url;
    }

    @Override
    public String toString() {
        return "Channel{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", totalFeeds=" + totalFeeds +
                ", unreadFeeds=" + unreadFeeds +
                ", url='" + url + '\'' +
                ", newestFetched=" + newestFetched +
                '}';
    }
}
